<template>
  <div class="hui">
    <div class="fanhui"
         @click="fanhui()">
      <img src="/imgs/fanhui.png"
           alt="">
      <p>返回</p>
    </div>
  </div>
</template>



<script>
import { onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'
export default {
  components: {},
  setup() {
    const router = useRouter()
    let hello = ref('hello')
    const fanhui = () => {
      router.go(-1)
    }
    onMounted(() => {})

    return {
      hello,
      fanhui
    }
  }
}
</script>

<style scoped lang="less">
.hui {
  width: 1000px;
  margin: 0 auto;
  border-bottom: 1px dashed #ccc;
}
.fanhui {
  height: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  width: 100px;
  img {
    width: 30px;
    height: 15px;
  }
  p {
    line-height: 30px;
    margin-left: 10px;
    font-size: 16px;
    color: #111;
  }
}
</style>

